package fuxi;

import java.time.LocalDateTime;
import java.util.ArrayList;

public class shijian {
    public static void main(String[] args) {
      String rest = LocalDateTime.now().toString();
      System.out.println("LocalDateTime提供的格式化方法，结果："+rest);

        System.out.println("一个月的时间："+LocalDateTime.now().plusMonths(1));


        ArrayList<LocalDateTime> list = new ArrayList<>();
        for (int i = 0; i < 30; i++) {
            list.add(LocalDateTime.now().plusDays( -i));
            System.out.println(list);
        }
        






    }
}
